package com.qf.bbapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@TableName("t_address")
public class Address {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Integer uid;
    private String name;
    private String sex;
    private String phone;
    private String area;
    private String doorplate;
    private Boolean flag;

    public Address(Integer uid, String name, String sex, String phone, String area, String doorplate, Boolean flag) {
        this.uid = uid;
        this.name = name;
        this.sex = sex;
        this.phone = phone;
        this.area = area;
        this.doorplate = doorplate;
        this.flag = flag;
    }
}
